package Practice.Practice_02;

import java.util.Calendar;

public class Demo04 {
    public static void main(String[] args) {
        String str = "370629199012310035";
        String year = str.substring(6,10);
        String month = str.substring(10,12);
        String day = str.substring(12,14);
        Calendar cal = Calendar.getInstance();
        int y = Integer.parseInt(year);
        int m = Integer.parseInt(month);
        int d = Integer.parseInt(day);
        //cal.set(Calendar.YEAR, y);
        cal.set(y, m - 1, d);
        int n = cal.get(Calendar.DAY_OF_YEAR);
        System.out.println(n);
    }
}
